<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="text/html;charset=utf-8">
<title>个人信息</title> </head>
<%-- bootstrap样式 --%>
<link href="resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="resources/css/index.css" rel="stylesheet">

<body>
<s:include value="../header-common.jsp" />
<div class="container-fluid">
	<div class="row">
		<h1 style="text-align:center;text-shadow:1px 1px;">个人信息</h1>
	</div>

	<s:form name="checkUpdate" action="checkUpdate" method="post"
		class="form-horizontal container-fluid">
		<div class="form-group">
			<label class="col-sm-3 control-label">邮箱账户</label>
			<div class="col-sm-6">
				<div class="input-group col-xs-12">
					<input type="email" class="form-control" name="employee.employeeEmail"
					 name="employee.employeeEmail" readonly value="${employee.employeeEmail}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">用户姓名</label>
			<div class="col-sm-6">
				<div class="input-group col-xs-12">
					<input type="text" class="form-control"
						name="employee.employeeName" value="${employee.employeeName }" readonly>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">性别</label>
			<div class="col-sm-6">
				<div class="input-group col-xs-12">
					<input class="form-control" 
						value='<s:if test="employee.sex==1">男</s:if><s:else><s:if test="employee.sex==2">女</s:if><s:else>未知</s:else></s:else>' readonly />
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">出生日期</label>
			<div class="col-sm-6">
				<div class='input-group date col-xs-12'>
					<input type="text" class="form-control" readonly value="${employee.birthday }"> 
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">联系电话</label>
			<div class="col-sm-6">
				<div class="input-group col-xs-12">
					<input type="text" class="form-control"	value="${employee.contact }" readonly>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">创建时间</label>
			<div class="col-sm-6">
				<div class='input-group date col-xs-12'>
					<input type="text" class="form-control" readonly 
						value="<s:date name="%{employee.createTime }" format="yyyy-MM-dd HH:mm:ss"/>"> 
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">所属角色</label>
			<div class="col-sm-6">
				<div class="input-group col-xs-12">
					<input type="text" class="form-control"
						value="${employee.role.roleName }" readonly placeholder="暂未分配角色">
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-7">
				<div class="btn-group btn-group-justified">
					<a href="updateInfo.do" class="btn btn-info">修改个人信息</a>
					<a href="updatePwd.do" class="btn btn-info">修改密码</a>
				</div>
			</div>
		</div>
	</s:form>
</div>
<script src="resources/bootstrap/js/jquery.min.js"></script>
<script src="resources/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
